<template>
    <div class="TitelImg">
        <template v-if="list">
            <template v-if="list.img">
                <img :src="list.img.url" width="100%" alt="" @click="jump(list.url)">
            </template>
        </template>

    </div>
</template>

<script>
export default {
    props: {
        list: Object,
    },
    computed: {},
    methods: {
        jump(url) {
            if (url) {
                let index = url.indexOf("activity/");
                let newUrl = url.slice(index + 9);
                this.$router.push("/activity" + newUrl);
            }
            // console.log(newUrl);//留待跳转
        },
    },
};
</script>

<style lang="scss" scoped>
.TitelImg {
    padding: 0.2rem 0.18rem;
}
</style>